package pl.edu.uj.tcs.blef.protocol;

/**
 * Unknown request error factory.
 * @author Maciej Bendkowski
 *
 */
public class UnknownRequestErrorFactory implements RequestFactory {

	@Override
	public Request build(Object[] parameters, RequestHandler handler) throws BuildFailedException {
		if(parameters != null) throw new BuildFailedException("No arguments expected.");
		return new UnknownRequestError("ERROR Unknown request!", handler);
	}

	@Override
	public Request parse(String message, RequestHandler handler) throws ParseFailedException, BuildFailedException {
		//TODO Add parse in client.
		return null;
	}
}
